package cn.meye11.crm.mapper;

import cn.meye11.crm.domain.entity.UserEntity;
import cn.meye11.crm.domain.query.UserQuery;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;
/**
 * (User)表数据库访问层
 * 
 * @author makejava
 * @since 2023-11-16 14:47:59
 */
@Repository
public interface UserMapper extends Mapper<UserEntity> {

    @SelectProvider(type = UserProvider.class, method = "list")
    List<UserEntity> list(UserQuery query);
    
    @SelectProvider(type = UserProvider.class, method = "count")
    Long count(UserQuery query);
}
